//
//  ViewController.m
//  01-UIViewHomeWork
//
//  Created by QC.L on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "ViewController.h"
#import "CustomView.h"
#import "VLView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self configVC];
    
}

- (void)configVC {
    UIImageView *backImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"welcome_2" ]];
    backImageView.frame = self.view.bounds;
    [self.view addSubview:backImageView];
    
    UIImageView *logoImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"logo_lagou"]];
    logoImageView.frame = CGRectMake(145, 120, self.view.frame.size.width -290 , 200);
    [self.view addSubview:logoImageView];
    
    CustomView *viewOfUserLogin = [[CustomView alloc] initWithFrame:CGRectMake(20, 350, self.view.frame.size.width - 40, 100)];
    viewOfUserLogin.layer.masksToBounds = YES;
    viewOfUserLogin.layer.cornerRadius = 10;
    [self.view addSubview:viewOfUserLogin];
    
    UIButton *loginButton = [UIButton buttonWithType:UIButtonTypeSystem];
    loginButton.frame = CGRectMake(20, 470, self.view.frame.size.width - 40, 50);
    [loginButton setTitle:@"登录" forState:UIControlStateNormal];
    loginButton.backgroundColor = [UIColor colorWithRed:0.00 green:0.71 blue:0.53 alpha:1.00];
    [loginButton setTitleColor:[UIColor colorWithRed:0.00 green:0.75 blue:0.62 alpha:1.00] forState:UIControlStateNormal];
    loginButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [loginButton.layer setCornerRadius:10];
    [self.view addSubview:loginButton];
    
    UIButton *forgetButton = [UIButton buttonWithType:UIButtonTypeSystem];
    forgetButton.frame = CGRectMake(20, 540, 100, 50);
    [forgetButton setTitle:@"忘记密码" forState:UIControlStateNormal];
    [forgetButton setTitleColor:[UIColor colorWithRed:0.95 green:0.91 blue:0.87 alpha:1.00] forState:UIControlStateNormal];
    [self.view addSubview:forgetButton];
    forgetButton.titleLabel.font = [UIFont systemFontOfSize:20];
    forgetButton.titleLabel.font = [UIFont boldSystemFontOfSize:20];
    
    UIButton *registerNowButton = [UIButton buttonWithType:UIButtonTypeSystem];
    registerNowButton.frame = CGRectMake(100, 590, self.view.frame.size.width - 200, 50);
    [registerNowButton setTitle:@"现在注册拉钩" forState:UIControlStateNormal];
    [registerNowButton setTitleColor:[UIColor colorWithRed:0.10 green:0.59 blue:0.44 alpha:1.00] forState:UIControlStateNormal];
    registerNowButton.titleLabel.font = [UIFont systemFontOfSize:20];
    registerNowButton.titleLabel.font = [UIFont boldSystemFontOfSize:20];
    [self.view addSubview:registerNowButton];
    
    VLView *viewOfWhiteLine = [[VLView alloc] initWithFrame:CGRectMake(20, 645, self.view.frame.size.width - 40, 20)];
    [self.view addSubview:viewOfWhiteLine];
    
    UIButton *buttonOfGoOnShop = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfGoOnShop.frame = CGRectMake(100, 670, self.view.frame.size.width - 200, 50);
    [buttonOfGoOnShop setTitle:@"随便逛逛" forState:UIControlStateNormal];
    [buttonOfGoOnShop setTitleColor:[UIColor colorWithRed:0.95 green:0.91 blue:0.87 alpha:1.00] forState:UIControlStateNormal];
    buttonOfGoOnShop.titleLabel.font = [UIFont systemFontOfSize:20];
    buttonOfGoOnShop.titleLabel.font = [UIFont boldSystemFontOfSize:20];
    [self.view addSubview:buttonOfGoOnShop];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
